<%-- 
    Document   : Messages
    Created on : May 18, 2010, 11:04:37 PM
    Author     : vasi
--%>

<%@page import="ejbs.*" %>
<%@page import="java.util.*"%>

<% 
    MessageQueueLocal msg = (MessageQueueLocal)request.getAttribute("messages");
    List<String> status_messages = msg.getStatusMessages(true);
    if (status_messages.size() > 0){
        out.print("<div class=\"messages status\">");
            Iterator<String> status_it = status_messages.iterator();
            while (status_it.hasNext()){
                out.print("<div class=\"message\">"+status_it.next()+"</div>");
            }
        out.print("</div>");
    }
%>
